package com.itheima.mm.pojo;

import lombok.Data;


@Data
/*题目选项*/
public class QuestionItem {

  private Integer id;
  /*选项的基本内容*/
  private String content;
  /*图片连接*/
  private String imgUrl;
  /*是否正确*/
  private Integer isRight;
  /*对应的题目id*/
  private Integer questionId;
  // 扩展字段
  private String code;
  private String title;

  /**
   * 页面返回时需要boolean类型
   * @return
   */
  public boolean getIsRight() {
    return isRight == 1;
  }
}
